import request from '@/axios'
import { Role } from './types'

export const getRoleListApi = () => {
  return request.get({ url: '/mock/role/table' })
}

// 角色分页接口
export const rolePageApi = (data: object = {}) => {
  return request.postPage<Role>({ url: '/api/role/page', data })
}
